package com.idanchuang.component.webflux.dto;

public class LoginUserDTO {

    /** 不推荐使用，推荐使用 idCode */
    private Long id;
    /** 用户idCode, 推荐使用 */
    private Long idCode;
    private Long pidCode;
    /** 昵称 */
    private String nickname;
    /** 手机号 */
    private String mobile;
    /**
     * @deprecated 透传的用户等级信息不保证强一致性，核心业务逻辑请不要使用该透传字段，应当同步从对应底层服务获取等级信息
     */
    @Deprecated
    private Integer brandProviderLevel;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getIdCode() {
        return idCode;
    }

    public void setIdCode(Long idCode) {
        this.idCode = idCode;
    }

    public Long getPidCode() {
        return pidCode;
    }

    public void setPidCode(Long pidCode) {
        this.pidCode = pidCode;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getBrandProviderLevel() {
        return brandProviderLevel;
    }

    public void setBrandProviderLevel(Integer brandProviderLevel) {
        this.brandProviderLevel = brandProviderLevel;
    }


    @Override
    public String toString() {
        return "LoginUserDTO{" +
                "id=" + id +
                ", idCode=" + idCode +
                ", pidCode=" + pidCode +
                ", nickname='" + nickname + '\'' +
                ", mobile='" + mobile + '\'' +
                ", brandProviderLevel=" + brandProviderLevel +
                '}';
    }
}
